<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.3/echarts.js"></script>
    <script src="js/jquery-3.3.1.js"></script>
    <script src="js/dark.js"></script>
    <script src="js/china.js"></script>
</head>
<body>
    <div id="box1" style="width: 700px;height: 500px;"></div>
</body>
<script>
    var myMap=echarts.init(document.getElementById("box1"));
    var option={
        tooltip:{

        },
        visualMap: {
            //color: ['#94cbe7','#63bec6','#2798aa']
        },
        series: [
            {
                name:'中国地图',
                type:'map',
                mapType:'china',
                label:{
                    show:true,
                    fontSize:12,
                },
                itemStyle:{
                    color:"red",
                    //areaColor:"#1e86ee",
                    borderWidth:1,
                },
                emphasis: {
                    itemStyle: {
                        areaColor:'#8b44ee'
                    }
                },
                data:[
                    {name:"北京",value:177},
                    {name:"天津",value:42},
                    {name:"河北",value:102},
                    {name:"山西",value:81},
                    {name:"内蒙古",value:47},
                    {name:"辽宁",value:67},
                    {name:"吉林",value:82},
                    {name:"黑龙江",value:66},
                    {name:"上海",value:24},
                    {name:"江苏",value:92},
                    {name:"浙江",value:114},
                    {name:"安徽",value:109},
                    {name:"福建",value:116},
                    {name:"江西",value:91},
                    {name:"山东",value:119},
                    {name:"河南",value:137},
                    {name:"湖北",value:116},
                    {name:"湖南",value:114},
                    {name:"重庆",value:91},
                    {name:"四川",value:125},
                    {name:"贵州",value:62},
                    {name:"云南",value:83},
                    {name:"西藏",value:9},
                    {name:"陕西",value:80},
                    {name:"甘肃",value:56},
                    {name:"青海",value:10},
                    {name:"宁夏",value:18},
                    {name:"新疆",value:67},
                    {name:"广东",value:123},
                    {name:"广西",value:59},
                    {name:"海南",value:14},
                    {name:"台湾",value: 0},
                    {name:"南海诸岛",value: 0}
                ]
            }
        ]
    }
    myMap.setOption(option);
</script>
</html>